﻿@model Tyshka.Subroutines.ViewModels.MainMenuContainer

<div class="navbar navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <a class="brand" href="@Url.IndexAction()">Public Database</a>
            <ul class="nav">
            @foreach(var menuItem in Model.Items.Where(mi => !mi.AlignedToRight)) {
                <li>
                    <a href="@(menuItem.Action == null ? "javascript:void(0);" : Url.Action(menuItem.Action, menuItem.Controller))" @(menuItem.OnClick == null ? String.Empty : "onclick="+menuItem.OnClick)  >@menuItem.Text</a>
                </li>
            }
            </ul>
        
            <form class="navbar-search pull-left" action="google.com">
	            <input type="text" class="search-query" placeholder="Search">
            </form>
            <ul class="nav pull-right">
                @foreach(var menuItem in Model.Items.Where(mi => mi.AlignedToRight)) {
        
                    <li><a href="@(menuItem.Action == null ? "javascript:void(0);" : Url.Action(menuItem.Action, menuItem.Controller))" @(menuItem.OnClick == null ? String.Empty : "onclick="+menuItem.OnClick)  >@menuItem.Text</a></li>
        
        

                }
            </ul>
        </div>
    </div>
</div>